package com.alan.shiro.controller;

import com.alan.shiro.bean.ResultMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Alan liu
 * @Date: 2018/12/11 19:14
 * @Description: 管理员
 */
@RestController
@RequestMapping("/admin")
public class AdminController {

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public ResultMap getMessage() {
        return new ResultMap().success().message("您拥有管理员权限，可以获得该接口的信息！");
    }

}
